<?php
namespace App\Models;

use Attribute;
use Illuminate\Database\Eloquent\Model;
use ReflectionClass;
use ReflectionObject;
use ReflectionProperty;

class Test123 extends Model{
    public function __construct(){
        $ref=new ReflectionObject($this);
        $attrs=$ref->getProperties(ReflectionProperty::IS_PUBLIC);
        foreach ($attrs as $prop) {
            if(count($prop->getAttributes())){
                
            }
        }
    }
    protected $table="test123";
    #[EncryptField(key:"testtest123456123456testtestABCD")]
    public string $name;
    #[EncryptField(key:"testtest123456123456testtestABCD")]
    public string $acc;
    #[EncryptField(key:"testtest123456123456testtestABCD")]
    public string $pwd;
    #[EncryptField(key:"testtest123456123456testtestABCD")]
    public string $mobile;
}